#include<stdio.h>
#include<stdlib.h>

int main()
{
	//开始播放
	printf("开始播放\n");
	//char buf[256] = {};
	//sprintf(buf,"madplay %s &","maplay /Even/res1/music/1one.mp3");
	//system(buf);

	system("madplay /Even/res1/music/1one.mp3");

	sleep(5);
	printf("\n暂停播放\n");
	system("killall -STOP madplay &");

	sleep(2);
	printf("\n继续播放\n");
	system("killall -CONT madplay &");

	sleep(3);
	printf("\n停止播放\n");
	system("killall -KILL madplay &");


	return 0;
}